package com.example;

import com.example.lotterysystem.dao.dataobject.UserDO;
import com.example.lotterysystem.dao.mapper.UserMapper;
import com.example.lotterysystem.service.enums.UserIdentityEnum;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.List;

@SpringBootTest
public class FindListByIdentity {

    @Autowired
    UserMapper mapper;
    @Test
    public void find(){
        List<UserDO> userDOS = mapper.selectUserListByIdentity(null);

        for(UserDO userdto:userDOS){
            System.out.println(userdto.getId()+userdto.getUserName()+" "+userdto.getEmail()+" "+userdto.getIdentity().name());
        }

    }
}
